ggyg

Discover ggyg, include the articles, news, trends, analysis and practical advice about ggyg on alibabacloud.com

VI editor Learning

input 'a, 'B, and co' C to change Co to m, which is cut. To delete multiple rows, enter 'a, 'B' de VI: Set smartindent VI: set number or set nu In vim, how to select and copy and delete all: Press ESC, And Then DG Copy all: Press ESC and then ggyg Select all highlight: Press ESC, and then ggvg or ggvg How Vim interacts with the clipboard (copy Vim content)You get used to copying and pasting various applications in windows, such as ultraedi

Vim shortcut (simple version)

to the tail of the file. ZZ moves the current line to the center of the screen.ZT moves the current line to the top of the screen. ZB moves the current line to the bottom of the screen.3. Insert I insert before the cursor.A is inserted after the cursor.I Insert the first non-empty word match either in the current line.A is inserted at the end of the current line.o Insert a new line below.O Insert a new row above.4. ReplaceR replaces the character at the cursor。R into replace mode, press ESC to

VIM neophyte ' s Notes

cursor: VAW(15) Copy in Visual mode: Y(16) larger/lower case in Visual mode: Gu/gu(17) Copy entire: Ggyg(18) Delete the character of the cursor (front): X (x)(19) Insert content before/after the cursor: i/a(20) Auto Completion in insert mode: ctrl+p(21) Insert one line below/above the cursor: o/o(22) Delete entire line: DD(23) Copy entire line: yy(24) Paste: P(25) Undo Modification: U(26) Reply to changes: Ctrl+r(27) Up/down/left/right Sub-window:: S

Vim basic commands

search target. + N search back. ////////////////////////////// Bracket matching command Place the cursor under the brackets and enter % Will automatically jump the cursor to the matching brackets, which is useful for writing programs. ////////////////////////////// Copy and select GgyG: all copies DG: delete the content after the cursor (move the cursor to the beginning to delete all content) P: Mark the content of the paste cache area. Yy: c

You may not know the vim use tips _linux

Replace with the content of the copy When there is a spelling error or if you want to rename an identifier, you need to replace the current name with the contents of the copy. For example, when invoking a function, the error is written: void Letus_fuckit_with_vim () { cout Just copy the name of the function above, and then switch the cursor to the misspelled word first. Then press VIWP and replace it: void Letus_fuckit_with_vim () { cout V into visual mode, and then

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.